﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PluginFramework.Common;

namespace Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {           
            String extensionName="ImplementPresenter.Presenter2";
            IPresenter1 prenter1 = (IPresenter1)(new Presenter1ExtensionPoint()).CreateExtension(new ClassNameExtensionFilter(extensionName) );
            if (prenter1!=null)
            {
                int a=prenter1.Calculate(4, 5);
                MessageBox.Show(a.ToString());

            }

        }

        void PluginManager_PluginLoaded(object sender, PluginLoadedEventArgs e)
        {
            
        }
    }   
}
